package com.salesmanager.core.business.customer.service;

import com.salesmanager.core.business.customer.dao.CustomerAuthsDao;
import com.salesmanager.core.business.customer.model.CustomerAuths;
import com.salesmanager.core.business.generic.dao.SalesManagerEntityDao;
import com.salesmanager.core.business.generic.service.SalesManagerEntityServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Liutong on 2016/6/18.
 */
@Service("customerAuthsService")
public class CustomerAuthsServiceImpl extends SalesManagerEntityServiceImpl<Long, CustomerAuths> implements CustomerAuthsService  {

    private CustomerAuthsDao customerAuthsDao;

    @Autowired
    public CustomerAuthsServiceImpl(CustomerAuthsDao customerAuthsDao) {
        super(customerAuthsDao);
        this.customerAuthsDao = customerAuthsDao;
    }

    @Override
    public CustomerAuths getByCustomerId(Long customerId) {
        return customerAuthsDao.getByCustomerId(customerId);
    }
}
